package com.pactera.asmp.server.entity;

import com.pactera.asmp.server.common.utils.FastJsonUtil;

/**
 * @ProjectName: tlsserver
 * @Package com.pactera.asmp.server.entity
 * @ClassName: TreeNode
 * @Description: 树形结构
 * @Date 2020/06/09 16:49
 * @Author lvzhiqiang
 * @Version 1.0
 */
public class TreeNode<T> {
    private PermissionVO prentNodeData;
    private T childrenNodeData;

    public TreeNode(PermissionVO prentNodeData, T childrenNodeData) {
        this.prentNodeData = prentNodeData;
        this.childrenNodeData = childrenNodeData;
    }

    public T getChildrenNodeData() {
        return childrenNodeData;
    }

    public void setChildrenNodeData(T childrenNodeData) {
        this.childrenNodeData = childrenNodeData;
    }

    public PermissionVO getPrentNodeData() {
        return prentNodeData;
    }

    public void setPrentNodeData(PermissionVO prentNodeData) {
        this.prentNodeData = prentNodeData;
    }

    public String toString() {
        return FastJsonUtil.BeanToJson(this);
    }
}
